package phases

import (
	"cke.io/ckectl/app/cmd/options"
	common "cke.io/ckectl/app/cmd/phases"
	kubeoptions "k8s.io/kubernetes/cmd/kubeadm/app/cmd/options"
	"k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow"
)

func NewEtcdPhase() workflow.Phase {
	options := []string {
		options.LocalHostName,
		options.InsecureRegistry,
		options.AnsibleImageName,
		kubeoptions.CfgPath,
	}
	return common.CommonPhase("etcd", "etcd", options...)
}